package com.yutian.example.demo.forum.dao.model.req;

import com.yutian.example.demo.common.model.PageBaseRequestDO;
import com.yutian.example.demo.common.vo.PageBaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@EqualsAndHashCode(callSuper=true)
@ToString(callSuper = true)
public class TopicPageReqDO extends PageBaseRequestDO {
    public static TopicPageReqDO of(PageBaseRequest pageBaseRequest) {
        TopicPageReqDO r = new TopicPageReqDO();
        r.setOffset(pageBaseRequest.getOffset());
        r.setPageSize(pageBaseRequest.getPageSize());
        r.setSortSql(pageBaseRequest.getSortSql());
        return r;
    }
    private String title;
}
